﻿using com.guojin.mj.net.message.login;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ChecksPanel : EventManager
{
    public Button ret;
    public override void InformationSetting()
    {
    }
    private void Awake()
    {
        ret.onClick.AddListener(delegate {
            Destroy(this.gameObject);
        });
    }
    public void Set(CheckInfo ci,string cuid) {
        for (int i = 0; i < ci.List.Count; i++)
        {
            GameObject item = Instantiate(Resources.Load("Prefab/Clubs/ClubListItem")) as GameObject;
            item.transform.SetParent(BindingSource[0].transform);
            item.transform.localScale = Vector3.one;
            item.transform.localPosition = Vector3.zero;
            item.GetComponent<CheckItem>().Set(ci.List[i], cuid);
        }
    }
}
